package com.ltmall.api.entity;

import java.util.Date;

public class JsonRewardAndFans implements Comparable<JsonRewardAndFans> {
	private int userID;
	
	private String userName;
	private String icon;
	
	private int level;
	private String channelType;
	public String getChannelType() {
        return channelType;
    }
    public void setChannelType(String channelType) {
        this.channelType = channelType;
    }

    private double reward;
	private Date date;
	
	public int getUserID() {
		return userID;
	}
	public void setUserID(int userID) {
		this.userID = userID;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public int getLevelID() {
		return level;
	}
	public void setLevelID(int level) {
		this.level = level;
	}
	public double getReward() {
		return reward;
	}
	public void setReward(double reward) {
		this.reward = reward;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	public int compareTo(JsonRewardAndFans o) {
		if(this.date.getTime() > o.getDate().getTime())
			return -1;
		else if (this.date.getTime() == o.getDate().getTime())
			return 0;
		else
			return 1;
	}
	
	
	
}
